/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-11-20
 * Time: 20:47
 */
public class Count {
    public static void main(String[] args)  throws ArithmeticException{
        String s1 = "qweqwref     dfdf sd df ";//s1.length()!=0
        String[] s2 = s1.split(" ");
        int count = s2.length;
        for (int i = 0; i < s2.length; i++) {
            if (s2[i].length() == 0) {
                count--;
            }
        }
        System.out.println(count);
        System.out.println(10 / 0);
        System.out.println(10);
    }
}
